<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
    <title>所有消息</title>
 
  </head>
  <body>
   <%-- <jsp:include page="/WEB-INF/jsp/personalAction/personalTitle.jsp"></jsp:include> --%>
	<br>
	<div class="container">
  <div><h3>全部消息</h3></div><hr>
	<form action="message_delete.action" method="post">
		<br>
		<table class="table table-condensed">
			<thead>
				<tr style="background-color:rgba(0, 0, 0, 0.1);">
					<td></td>
					<th>投诉主题</th>
					<th>最后一次处理时间</th>
					<th>处理状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="recordList" status="obj">
					<tr>
						<s:set value="recordList[#obj.index][0].id" var="mid" />
						<s:set value="recordList[#obj.index][1].id" var="cid" />
						
						<td><s:if test="recordList[#obj.index][0].status=='已读'">
								<img title="已读" src="images/open.png"
									style="width: 20px;float: right">
							</s:if> <s:else>
								<img title="未读" src="images/close.png"
									style="width: 20px;float: right">
							</s:else>
						</td>
						
						<td><s:property value="recordList[#obj.index][1].complaint" /></td>
						
						<td><s:date name="recordList[#obj.index][0].date"
								format="yyyy-MM-dd HH:mm:ss" /></td>
								
						<td><s:if test="recordList[#obj.index][0].progress==0">待处理</s:if>
							<s:elseif test="recordList[#obj.index][0].progress==1" >处理中</s:elseif>
							<s:else >处理完成</s:else>
						</td>
						
						    <td>
								<a href="message_complaintDetail.action?id=${cid}"
								class="btn btn-info btn-xs" role="button">投诉详情</a>
								
								<a href="message_dealSuccess.action?id=${cid}"
								class="btn btn-info btn-xs" role="button">处理</a>
								
								<a href="message_delme.action?id=${mid}"
								class="btn btn-info btn-xs" role="button">删除</a>
								
								
							</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</form>
	<%@include file="/WEB-INF/jsp/public/pageView.jspf"%>
	<form id="pageCondition" action="message_all.action"></form>

 </div>
</body>

</html>
